gtk4.git
10 years agoThrow an error when a display is missing
Matthias Clasen [Sat, 30 Jan 2016 21:06:59 +0000 (16:06 -0500)]
Throw an error when a display is missing

Creating style context won't work without a display, so
give a clear error message and abort instead of segfaulting
later on.

https://bugzilla.gnome.org/show_bug.cgi?id=761332

10 years ago3.19.8
Matthias Clasen [Sat, 30 Jan 2016 18:27:30 +0000 (13:27 -0500)]
3.19.8

10 years agoRemove entry-progress-coloring reftest
Matthias Clasen [Sat, 30 Jan 2016 16:32:06 +0000 (11:32 -0500)]
Remove entry-progress-coloring reftest

We don't recolor text over progress anymore, so this
tests a no longer existing feature.

10 years agoUse TAP output for installed tests
Matthias Clasen [Sat, 30 Jan 2016 15:29:06 +0000 (10:29 -0500)]
Use TAP output for installed tests

10 years agoRun reftests with HighContrastInverse too
Matthias Clasen [Sat, 30 Jan 2016 15:10:39 +0000 (10:10 -0500)]
Run reftests with HighContrastInverse too

For installed tests, we run the reftests with all the builtin
themes (minus platform-specific ones). Add HighContrastInverse
to that list.

10 years agoAdwaita: Add symbolic png assets
Matthias Clasen [Sat, 30 Jan 2016 04:40:58 +0000 (23:40 -0500)]
Adwaita: Add symbolic png assets

And use them as fallback for the svg ones. This lets us
avoid a hard dependency on librsvg - the theme will work
without svg support.

10 years agoicontheme: Avoid a crash
Matthias Clasen [Sat, 30 Jan 2016 04:36:24 +0000 (23:36 -0500)]
icontheme: Avoid a crash

gtk_icon_info_new_for_file with a size of 0 would fail for
symbolic pngs because we ended up scaling with 0. Avoid this.

10 years agocss: Support the image() notation
Matthias Clasen [Sat, 30 Jan 2016 01:23:27 +0000 (20:23 -0500)]
css: Support the image() notation

This lets us do fallback in case an image format is not
supported, and also lets us provide solid-color images.
We don't support image fragment notations.

See ttps://www.w3.org/TR/css3-images/#image-notation

https://bugzilla.gnome.org/show_bug.cgi?id=761318

10 years agoEmit an error if image loading fails
Matthias Clasen [Sat, 30 Jan 2016 03:47:38 +0000 (22:47 -0500)]
Emit an error if image loading fails

Instead of spamming stderr with g_warning, use the new
emit_error method of the GtkStyleProviderPrivate interface
to emit an error if loading an image fails.

10 years agoCSS provider: Add a way to emit errors
Matthias Clasen [Sat, 30 Jan 2016 03:45:21 +0000 (22:45 -0500)]
CSS provider: Add a way to emit errors

Currently, GtkCssProvider can emit ::parsing-error only during
the actual parsing, although the documentation hints that it might
happen at other times.

This commit adds a emit_error method to the GtkStyleProviderPrivate
interface that will let us emit errors from the compute() implementations
as well, which can be useful (e.g. if an image fails to load).

10 years agoUpdated Hungarian translation
Balázs Meskó [Sat, 30 Jan 2016 01:24:09 +0000 (01:24 +0000)]
Updated Hungarian translation

10 years agoUpdated Hungarian translation
Gábor Kelemen [Sat, 30 Jan 2016 01:23:14 +0000 (01:23 +0000)]
Updated Hungarian translation

10 years agoUpdated Hungarian translation
Balázs Meskó [Sat, 30 Jan 2016 01:22:10 +0000 (01:22 +0000)]
Updated Hungarian translation

10 years agofile chooser: Make Escape close the dialog
Matthias Clasen [Sat, 30 Jan 2016 00:12:51 +0000 (19:12 -0500)]
file chooser: Make Escape close the dialog

In some situations (no header bar, save mode), hitting Escape
would not do anything because the entry ate the key event.
Fix this by telling the entry to only handle Escape when there
is something to do, such as switching back to the path bar.

https://bugzilla.gnome.org/show_bug.cgi?id=761026

10 years agoAdd a css style test for color names
Matthias Clasen [Fri, 29 Jan 2016 23:23:25 +0000 (18:23 -0500)]
Add a css style test for color names

Verify that we support all the css color names, with their expected
rgb values.

10 years agocss image recolor: Load images at the proper scale
Matthias Clasen [Fri, 29 Jan 2016 22:30:10 +0000 (17:30 -0500)]
css image recolor: Load images at the proper scale

We should not hardcode a scale of 1, this leads to
pixellated upscaled images at scale=2, even if the source
is an svg. By passing the proper scale, we can load the
svg at the correct size.

10 years agoicon theme: Improve loading of unthemed files
Matthias Clasen [Fri, 29 Jan 2016 22:27:35 +0000 (17:27 -0500)]
icon theme: Improve loading of unthemed files

When creating icon info objects for unthemed files, we don't
really have a nominal size, so we pass 0 to mean 'load at
original size'. However, this is not what was happening.
To make this possible, add variants of some pixbuf loading
functions that take a scale factor instead of a desired size,
and use those when we don't have a nominal size.

10 years agoimage: use GtkMisc padding again
Matthias Clasen [Fri, 29 Jan 2016 18:44:45 +0000 (13:44 -0500)]
image: use GtkMisc padding again

This was lost in the gadget conversion.
Thankfully, the misc-alignment reftest catches this.

10 years agoUse an GtkImage instead of GtkArrow
Matthias Clasen [Fri, 29 Jan 2016 18:21:01 +0000 (13:21 -0500)]
Use an GtkImage instead of GtkArrow

GtkArrow is deprecated, and the recommended replacement
is GtkImage.

10 years agoreftests: get icon-vfuncs test almost working again
Matthias Clasen [Fri, 29 Jan 2016 17:20:31 +0000 (12:20 -0500)]
reftests: get icon-vfuncs test almost working again

The remaining difference here is GtkArrow, which is deprecated
and has not been updated to the latest CSS rendering standards.

10 years agoAdwaita: reset padding on notebook tab close button
Lapo Calamandrei [Fri, 29 Jan 2016 17:09:28 +0000 (18:09 +0100)]
Adwaita: reset padding on notebook tab close button

10 years agotestgtk: Avoid deprecation warnings
Matthias Clasen [Fri, 29 Jan 2016 16:51:09 +0000 (11:51 -0500)]
testgtk: Avoid deprecation warnings

Eventually, we should probably remove the examples that rely
on geometry support, since they probably don't work correctly
anymore. For now, just disable the warnings.

10 years agotestoffscreen: Remove deprecated calls
Matthias Clasen [Fri, 29 Jan 2016 16:50:22 +0000 (11:50 -0500)]
testoffscreen: Remove deprecated calls

Not doing these calls doesn't seem to affect the demo,
so lets just remove them.

10 years agotestgeometry: Ignore deprecations
Matthias Clasen [Fri, 29 Jan 2016 16:25:14 +0000 (11:25 -0500)]
testgeometry: Ignore deprecations

All the functionality that is tested here has been deprecated
recently.

10 years agoAdwaita: fix border radius on #editor-color-sample
Lapo Calamandrei [Fri, 29 Jan 2016 16:48:45 +0000 (17:48 +0100)]
Adwaita: fix border radius on #editor-color-sample

10 years agoAdwaita: notebook style rewrite
Lapo Calamandrei [Fri, 29 Jan 2016 15:32:43 +0000 (16:32 +0100)]
Adwaita: notebook style rewrite

10 years agoUpdate gtk-builder-tool docs
Matthias Clasen [Fri, 29 Jan 2016 14:42:18 +0000 (09:42 -0500)]
Update gtk-builder-tool docs

10 years agobuilder tool: Add a preview command
Matthias Clasen [Fri, 29 Jan 2016 14:23:41 +0000 (09:23 -0500)]
builder tool: Add a preview command

This was somewhat missing, and is easy to add.

10 years agodocs: Fix a duplicate id
Matthias Clasen [Fri, 29 Jan 2016 13:08:08 +0000 (08:08 -0500)]
docs: Fix a duplicate id

This was causing the css properties chapter to appear twice
in the docs, and the overview not at all.

10 years agoUpdates
Matthias Clasen [Fri, 29 Jan 2016 04:09:42 +0000 (23:09 -0500)]
Updates

10 years agoinfobar: Don't expose implementation details
Matthias Clasen [Fri, 29 Jan 2016 03:49:36 +0000 (22:49 -0500)]
infobar: Don't expose implementation details

Only export the documented widgets as internal children.

10 years agosearchbar: Don't expose implementation details
Matthias Clasen [Fri, 29 Jan 2016 03:47:28 +0000 (22:47 -0500)]
searchbar: Don't expose implementation details

The various boxes and the revealer here should not be exposed
as internal children for subclasses to use in their .ui files.

10 years agoactionbar: Don't expose implementation details
Matthias Clasen [Fri, 29 Jan 2016 03:39:31 +0000 (22:39 -0500)]
actionbar: Don't expose implementation details

The box and revealer here should not be exposed as internal
children for subclasses to use in their .ui files.

10 years agodialog: Stop exporting action_box
Matthias Clasen [Fri, 29 Jan 2016 03:36:27 +0000 (22:36 -0500)]
dialog: Stop exporting action_box

This was not meant as an internal child that subclasses
can refer to in their .ui files.

https://bugzilla.gnome.org/show_bug.cgi?id=761254

10 years agoprint dialog: Stop using action_box in .ui
Matthias Clasen [Fri, 29 Jan 2016 03:10:02 +0000 (22:10 -0500)]
print dialog: Stop using action_box in .ui

We can just use CSS margins nowadays to achieve the desired
appearance.

10 years agolabel: fix a case of misleading indentation
Matthias Clasen [Fri, 29 Jan 2016 01:50:50 +0000 (20:50 -0500)]
label: fix a case of misleading indentation

gcc 6 complains aobut things like this.

10 years agotests: Avoid deprecated API usage in testgtk
Carlos Garnacho [Thu, 28 Jan 2016 11:46:32 +0000 (12:46 +0100)]
tests: Avoid deprecated API usage in testgtk

We can use seat grabs here.

10 years agotests: Avoid deprecated API usage in testsocket
Carlos Garnacho [Thu, 28 Jan 2016 11:46:07 +0000 (12:46 +0100)]
tests: Avoid deprecated API usage in testsocket

We can use seat grabs here.

10 years agotests: Fix deprecation warnings in testinput
Carlos Garnacho [Thu, 28 Jan 2016 11:10:12 +0000 (12:10 +0100)]
tests: Fix deprecation warnings in testinput

10 years agodemos: Modify "Change display" demo to use seat grabs
Carlos Garnacho [Thu, 28 Jan 2016 11:04:13 +0000 (12:04 +0100)]
demos: Modify "Change display" demo to use seat grabs

The window picking feature was done through a pointer grab, replace
it by a seat grab on pointing devices.

10 years agogtkdnd: Fix deprecation compile warnings
Carlos Garnacho [Thu, 28 Jan 2016 10:58:15 +0000 (11:58 +0100)]
gtkdnd: Fix deprecation compile warnings

Grabbing must stay a bit longer until all other backends than x11/wayland
catch up with GDK DnD, so ignore deprecation flags are used on those. The
uses of GdkDeviceManager can be entirely avoided though.

10 years agolabel: use GtkMisc padding again
Christoph Reiter [Thu, 28 Jan 2016 10:04:48 +0000 (11:04 +0100)]
label: use GtkMisc padding again

this was lost in the gadget conversion in a81267c28e4e0368cd0e23b661e1c8c53f8194fb

https://bugzilla.gnome.org/show_bug.cgi?id=760522

10 years agospin button: Document sizing peculiarities
Matthias Clasen [Thu, 28 Jan 2016 04:30:25 +0000 (23:30 -0500)]
spin button: Document sizing peculiarities

Document that it is best to explicitly set width-chars and
max-width-chars to avoid surprises.

https://bugzilla.gnome.org/show_bug.cgi?id=727294

10 years agocomposetable: Don't abort on unsupported escape sequences
Matthias Clasen [Thu, 28 Jan 2016 04:22:02 +0000 (23:22 -0500)]
composetable: Don't abort on unsupported escape sequences

People might put all sorts of gunk in their .XCompose file, in
the hope that XLib makes sense of it. Even if we don't make sense
of it, we shouldn't abort, but instead ignore the lines we can't
understand. Pointed out in
https://bugzilla.redhat.com/show_bug.cgi?id=1301254

10 years agoUpdate README.glade
Matthias Clasen [Wed, 27 Jan 2016 20:14:30 +0000 (15:14 -0500)]
Update README.glade

Update the README.glade file to use current .ui file
names and locations as example.

10 years agoUpdated German translation
Mario Blättermann [Wed, 27 Jan 2016 19:08:25 +0000 (20:08 +0100)]
Updated German translation

10 years agocss node tests: Update expected output
Matthias Clasen [Wed, 27 Jan 2016 18:23:58 +0000 (13:23 -0500)]
css node tests: Update expected output

The entry undershoot change needs to be reflected in the
test output.

10 years agowindow: Always disconnect signal handlers
Matthias Clasen [Wed, 27 Jan 2016 18:07:13 +0000 (13:07 -0500)]
window: Always disconnect signal handlers

We connect to the titlebar widgets change notification regardless
whether it is internally created or not, so don't make the signal
handler disconnection conditional on that either.

10 years agoassistant: Avoid tripping template tests
Matthias Clasen [Wed, 27 Jan 2016 17:57:58 +0000 (12:57 -0500)]
assistant: Avoid tripping template tests

We need to unset the titlebar manually before chaining up
in destroy, otherwise we trigger the template invariant
checking - GtkWindow would eventually unset it, but too late
for the invariants checking code in gtk_widget_destroy.

10 years agoTweak startup-notification after the first window
Allison Ryan Lortie [Wed, 27 Jan 2016 14:50:42 +0000 (15:50 +0100)]
Tweak startup-notification after the first window

Presently, Gtk will only send a startup notification completion message
for the first window that is shown.  This is not good for the case of
GtkApplication, where we are expected to participate in
startup-notification for all windows.

We have avoided this problem by manually emitting the startup complete
message from after_emit in GtkApplication.

Unfortunately, this causes problems for windows that are shown with a
delay.  It is also a dirty hack.

The reason for the original behaviour is simple: there is a static
boolean in gtkwindow.c which controls it.  We remove this.

Instead, clear the startup notification ID stored in GDK when sending
the completion message.  GtkApplication will re-set this the next time
an event comes in which needs startup-notification handling.  In the
non-GtkApplication case, newly shown windows will still not send the
message, since the cookie will have been cleared.

Finally, we remove the hack from GtkApplication's after_emit.

This will probably cause some regressions in terms of lingering startup
notification messages.  The correct solution here is to always use
gtk_window_present(), including when merely opening a new document (with
a new tab, for example).

https://bugzilla.gnome.org/show_bug.cgi?id=690791

10 years agomodelbutton: Use indicator state for button gadget if iconic
Timm Bäder [Wed, 27 Jan 2016 15:32:39 +0000 (16:32 +0100)]
modelbutton: Use indicator state for button gadget if iconic

10 years agoentry: Fix a typo
Krzesimir Nowak [Wed, 27 Jan 2016 12:25:58 +0000 (13:25 +0100)]
entry: Fix a typo

10 years agoentry: Fix a case of disagreeing coordinate systems
Benjamin Otte [Wed, 27 Jan 2016 13:02:44 +0000 (14:02 +0100)]
entry: Fix a case of disagreeing coordinate systems

gesture_get_current_point() returned x/y in layout coordiantes, but
callers assumed it in textarea coordinates.

10 years agoAdwaita: fix spinbutton styling
Cosimo Cecchi [Wed, 27 Jan 2016 11:25:49 +0000 (12:25 +0100)]
Adwaita: fix spinbutton styling

Spinbuttons were quite broken after the latest changes. This commit
brings the style back around what it was for 3.18.

10 years agoAdwaita: Add some themeing for entry undershoot
Matthias Clasen [Wed, 27 Jan 2016 04:33:06 +0000 (23:33 -0500)]
Adwaita: Add some themeing for entry undershoot

This is just copying what we do for scrolled windows.
It will need some tweaks to look good for entries.

10 years agoentry: give a visual clue that content is scrolled
Matthias Clasen [Wed, 27 Jan 2016 04:31:28 +0000 (23:31 -0500)]
entry: give a visual clue that content is scrolled

This has been requested long ago, and we now have the
machinery to implement it easily.

10 years agobox gadget: Improve assertion message
Matthias Clasen [Wed, 27 Jan 2016 03:11:54 +0000 (22:11 -0500)]
box gadget: Improve assertion message

Include the owner of the gadget in the assertion message,
to improve the chances of tracking down whats actually
going wrong here.

10 years agocolor button: Allow skipping the palette
Matthias Clasen [Wed, 27 Jan 2016 02:27:12 +0000 (21:27 -0500)]
color button: Allow skipping the palette

Allow skipping the palette in the dialog, and going directly
to the editor. This is useful when the color button is already
part of a palette.

10 years agoFix a typo
Matthias Clasen [Wed, 27 Jan 2016 01:57:50 +0000 (20:57 -0500)]
Fix a typo

10 years agoentry: Compute selection range correctly
Benjamin Otte [Wed, 27 Jan 2016 01:07:35 +0000 (02:07 +0100)]
entry: Compute selection range correctly

gtk_editable_get_selection_bounds() returns UTF-8 character offsets,
but gdk_pango_layout_get_clip_region() wants byte ranges, so convert
from one to the other.
With English, this is especially visible for passwords, which use ●
as the invisible character.

https://bugzilla.gnome.org/show_bug.cgi?id=761128

10 years agowindow: Deprecate gtk_window_parse_geometry()
Benjamin Otte [Wed, 27 Jan 2016 00:09:51 +0000 (01:09 +0100)]
window: Deprecate gtk_window_parse_geometry()

Geometry handling in GTK is deprecated.

10 years agowindow: Deprecate gtk_window_set_default_geometry()
Benjamin Otte [Wed, 27 Jan 2016 00:07:01 +0000 (01:07 +0100)]
window: Deprecate gtk_window_set_default_geometry()

We don't support geometries anymore.

10 years agoAdd an XSetting for primary button warps slider
Olav Vitters [Mon, 25 Jan 2016 18:59:05 +0000 (19:59 +0100)]
Add an XSetting for primary button warps slider

This will be used by xsettings-kde to ensure GTK+3.x programs behave
consistently.

https://bugzilla.gnome.org/show_bug.cgi?id=688524

10 years agogdk: Don't translate signal names
Matthias Clasen [Tue, 26 Jan 2016 17:42:04 +0000 (12:42 -0500)]
gdk: Don't translate signal names

This was a thinko - what we sometimes do for signal names is to
use I_() to intern them (to avoid a strdup), but I_() is not
currently available in gdk, so lets just skip this
microoptimization for now.

10 years agospinbutton: Don't expand the buttons
Benjamin Otte [Tue, 26 Jan 2016 15:40:33 +0000 (16:40 +0100)]
spinbutton: Don't expand the buttons

When the spinbutton grows larger, distribute horizontal size to the
entry and vertical size to the buttons.

Obviously, horizontal size only matters for horizontal spinbuttons and
vertical for vertical spinbuttons.

10 years agostack: realize windows in correct position
Benjamin Otte [Tue, 26 Jan 2016 15:36:13 +0000 (16:36 +0100)]
stack: realize windows in correct position

10 years agopathbar: Use CSS node ordering
Benjamin Otte [Tue, 26 Jan 2016 13:13:18 +0000 (14:13 +0100)]
pathbar: Use CSS node ordering

Instead of the custom get_path_for_child() function.

10 years agostack: Turn into no-window widget
Benjamin Otte [Tue, 26 Jan 2016 13:02:55 +0000 (14:02 +0100)]
stack: Turn into no-window widget

Having priv->view_window be the same as widget->window does not make
sense.

And because we need to clip the content area, we need the view window.

10 years agoentry: Chain up in realize()
Benjamin Otte [Tue, 26 Jan 2016 12:23:44 +0000 (13:23 +0100)]
entry: Chain up in realize()

... instead of copy/pasting what gtk_widget_real_realize() does.

10 years agobuild: Missing build flags
Emmanuele Bassi [Tue, 26 Jan 2016 13:32:47 +0000 (13:32 +0000)]
build: Missing build flags

The compiler and linker flags variables were renamed in the previous
commit.

10 years agoAdd more checks for the font features demo
Emmanuele Bassi [Tue, 26 Jan 2016 13:29:46 +0000 (13:29 +0000)]
Add more checks for the font features demo

The demo also uses PangoFt2 API.

10 years agodemo: Link against Harfbuzz
Emmanuele Bassi [Tue, 26 Jan 2016 11:46:48 +0000 (11:46 +0000)]
demo: Link against Harfbuzz

The font features demo started calling the Harfbuzz API directly
starting from commit 9de3b24c205f1c647292a490f92f21a776b931a4. Harfbuzz
is an implicit dependency of Pango on some platforms, but it's not part
of the public dependencies; this means that we cannot expect to link to
Pango and automatically get Harfbuzz symbols to link against —
especially when things like --as-needed are in play.

This change triggered build failures on non-Unix platforms, fixed by
commit 2a9967731a3b77b102ada633c39b5a35efc80957, as well as build
failures in Continuous, with this error message:

/usr/lib/gcc/x86_64-gnomeostree-linux/4.9.3/../../../../x86_64-gnomeostree-linux/bin/ld:
font_features.o: undefined reference to symbol 'hb_tag_to_string'
//lib/libharfbuzz.so.0: error adding symbols: DSO missing from command
line
collect2: error: ld returned 1 exit status

In order to get the font features demo to build everywhere we should
take an explicit, though optional, check on Harfbuzz, and conditionally
build the font features demo with the right compiler and linker flags.

10 years agodemos: Don't build font features demo on non-UNIX
Chun-wei Fan [Tue, 26 Jan 2016 07:56:07 +0000 (15:56 +0800)]
demos: Don't build font features demo on non-UNIX

The fonts features demo now uses fontconfig APIs via PangoFT2, which makes
the code not build on non-Linux, so only include this demo in the build
on UNIX.

10 years agogtk-demo: Expand font features demo
Matthias Clasen [Mon, 25 Jan 2016 05:40:49 +0000 (00:40 -0500)]
gtk-demo: Expand font features demo

Add more features to the list, allow selecting script/language
from the set that is supported by the font, indicate which
features are present in the font for the selected script/language,
and expand the default specimen to cover latin, cyrillic and
greek.

10 years agoUpdate expected output of a11y tests
Matthias Clasen [Mon, 25 Jan 2016 20:59:32 +0000 (15:59 -0500)]
Update expected output of a11y tests

This is the outcome of a recent fix to default values
for a GtkPaned property.

10 years agoDocs: fix typo
Ben Iofel [Mon, 25 Jan 2016 20:34:08 +0000 (15:34 -0500)]
Docs: fix typo

10 years agowayland: __NR_memfd_create instead of SYS_memfd_create
Ray Strode [Mon, 25 Jan 2016 18:55:25 +0000 (13:55 -0500)]
wayland: __NR_memfd_create instead of SYS_memfd_create

It looks like the gnome-continuous headers haven't quite
caught up yet, so try __NR_memfd_create instead.

If that doesn't work, i'll likely just add in a fallback
code path.

10 years agowayland: use memfd_create instead of open in tmpdir
Ray Strode [Mon, 25 Jan 2016 16:41:23 +0000 (11:41 -0500)]
wayland: use memfd_create instead of open in tmpdir

The tmpdir is used for a wide assortment of things, and
can easily fill up. If it fills then desktop will start
crashing with SIGBUS errors.

This commit changes the shm pool allocation code, to use
memfd_create, instead, so the shared memory files will
be anonymous and not associated with /tmp

https://bugzilla.gnome.org/show_bug.cgi?id=761095

10 years agoFix another quoting error in installed tests
Matthias Clasen [Mon, 25 Jan 2016 18:01:15 +0000 (13:01 -0500)]
Fix another quoting error in installed tests

Same as the previous one. I should fix my silly mistakes before
copying them around...

10 years agotestsuite: Fix a quoting error
Matthias Clasen [Mon, 25 Jan 2016 15:56:19 +0000 (10:56 -0500)]
testsuite: Fix a quoting error

This was breaking continous testing. Oops.

10 years agospinbutton: Add a base gadget
Benjamin Otte [Mon, 25 Jan 2016 15:14:23 +0000 (16:14 +0100)]
spinbutton: Add a base gadget

This really messes up rendering in Adwaita because the code now renders
the spinbutton's entry node when it didn't before.

10 years agoentry: Use cleverer method to get the entry node
Benjamin Otte [Mon, 25 Jan 2016 14:47:40 +0000 (15:47 +0100)]
entry: Use cleverer method to get the entry node

10 years agoentry: Move spinbutton size hack
Benjamin Otte [Mon, 25 Jan 2016 14:42:18 +0000 (15:42 +0100)]
entry: Move spinbutton size hack

If we want to do special sizing for the text, we need to do it for the
text. Otherwise paddings, borders and entyr icons will screw up
everything.

10 years agoentry: Move code
Benjamin Otte [Mon, 25 Jan 2016 14:04:04 +0000 (15:04 +0100)]
entry: Move code

This movement is necessary for future gadgetization of GtkSpinButton.

10 years agoentry: Redo textarea handling
Benjamin Otte [Mon, 25 Jan 2016 00:33:28 +0000 (01:33 +0100)]
entry: Redo textarea handling

(1) Keep priv->text_allocation for the area used by the text
(2) Compute all text coordinates with the help of priv->text_allocation

As a side effect the get_text_area_size and get_frame_size vfuncs are
now unused. If we wanted them back, they should get a single use durig
size_allocate() and then their results should be stored for further
processing.

10 years agoentry: Use gtk_render_layout()
Benjamin Otte [Sun, 24 Jan 2016 23:07:23 +0000 (00:07 +0100)]
entry: Use gtk_render_layout()

It's funny that nobody has yet noticed that we don't draw the text using
the theme.

We had no text-shadow in entries!!!!!

10 years agoentry: Draw selection the same way as GtkLabel
Benjamin Otte [Sun, 24 Jan 2016 23:00:41 +0000 (00:00 +0100)]
entry: Draw selection the same way as GtkLabel

10 years agoentry: Fold function into only caller
Benjamin Otte [Sun, 24 Jan 2016 22:52:49 +0000 (23:52 +0100)]
entry: Fold function into only caller

10 years agoentry: Don't allow different text over progress
Benjamin Otte [Sun, 24 Jan 2016 22:46:12 +0000 (23:46 +0100)]
entry: Don't allow different text over progress

This complicates refactorings, so remove that feature. It's not used
anywhere and doesn't play well with nodes the way it's implemented.
If we want it back, we can add it back later.

10 years agoUpdated POTFILES.skip
Piotr Drąg [Mon, 25 Jan 2016 02:07:00 +0000 (03:07 +0100)]
Updated POTFILES.skip

10 years agoOne forgotten rename
Matthias Clasen [Mon, 25 Jan 2016 01:10:45 +0000 (20:10 -0500)]
One forgotten rename

Rename app-menu.ui to menus.ui in EXTRA_DIST too.

10 years agoicon browser: Load app menu automagically
Matthias Clasen [Mon, 25 Jan 2016 01:01:33 +0000 (20:01 -0500)]
icon browser: Load app menu automagically

No need to manually create a builder and pass the resource to it,
just follow the conventions and have GtkApplication do it for us.

10 years agopath bar: Don't hide arrows
Matthias Clasen [Sun, 24 Jan 2016 21:29:40 +0000 (16:29 -0500)]
path bar: Don't hide arrows

Changing the visibility of child widgets in size-allocate does
not work well with out current allocation and layout machinery.
To avoid the visual fallout, just keep the arrow buttons visible
and only change their sensitivity.

https://bugzilla.gnome.org/show_bug.cgi?id=754868

10 years agoinspector: Show CSS pseudoclass names for node state
Matthias Clasen [Sun, 24 Jan 2016 15:58:32 +0000 (10:58 -0500)]
inspector: Show CSS pseudoclass names for node state

This is a better fit for showing CSS node state, since one
commonly looks at this information to devise CSS selectors,
where the CSS names are needed.

10 years agocss: Privately export a function to get pseudoclass names
Matthias Clasen [Sun, 24 Jan 2016 15:56:23 +0000 (10:56 -0500)]
css: Privately export a function to get pseudoclass names

This function centralizes the mapping for widget states
to pseudoclass names in one place, for easier maintenance.

10 years agogdkdnd: Fix signal docs
Timm Bäder [Sun, 24 Jan 2016 09:48:48 +0000 (10:48 +0100)]
gdkdnd: Fix signal docs

Signals all have at least one parameter, the object that received the
signal.

10 years agoInspector: Plug a few leaks
Timm Bäder [Sun, 24 Jan 2016 07:01:36 +0000 (08:01 +0100)]
Inspector: Plug a few leaks

10 years agopaned: Initialize max_position
Matthias Clasen [Sun, 24 Jan 2016 05:22:31 +0000 (00:22 -0500)]
paned: Initialize max_position

As pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=608865
max_position should be set to G_MAXINT.

10 years agowidget-factory: Add a color editor example
Matthias Clasen [Sun, 24 Jan 2016 03:30:59 +0000 (22:30 -0500)]
widget-factory: Add a color editor example

10 years agocolor editor: Ensure spin buttons are wide enough
Matthias Clasen [Sat, 23 Jan 2016 23:26:09 +0000 (18:26 -0500)]
color editor: Ensure spin buttons are wide enough

If we don't explicitly ask for 2 chars to be visible, we might
get less, and it doesn't look great.